package com.woniuxy.caradmin.service.impl;

import com.woniuxy.caradmin.entity.pojo.Outrecord;
import com.woniuxy.caradmin.mapper.OutrecordMapper;
import com.woniuxy.caradmin.service.OutrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
@Service
public class OutrecordServiceImpl  implements OutrecordService{
     @Autowired
     private OutrecordMapper outrecordMapper;
    @Override
    public List<Outrecord> selectOutcordList() {
        List<Outrecord> outrecords = outrecordMapper.selectOutcordList();
        return outrecords;
    }

    @Override
    public Boolean insertOut(Outrecord outrecord) {
        if(outrecord!=null){
            outrecordMapper.insertOut(outrecord);
            return true;
        }
        return false;
    }
}
